import { $axios } from '@/utils/axios.js';

// 5.区域集合预报模块 - 设置

// 5.3 设置页面加载
export function settingLoadInfo() {
    return $axios.post('/grapes_reps/setting_load_info');
}

// 5.4 服务器修改设置
export function updateServer(data) {
    return $axios.post('/grapes_reps/setting/update_server', data);
}

// 5.5 缺失成员数阈值设置
export function changeMissingmembersThreshold(data) {
    return $axios.post('/grapes_reps/setting/change_missingmembers_threshold', data);
}

// 5.6 服务器缓存数据修改设置
export function changeServerLoad(data) {
    return $axios.post('/grapes_reps/setting/change_server_load', data);
}

// 5.7 缓存数据查看请求
export function loadBuffer() {
    return $axios.post('/grapes_reps/setting/load_buffer');
}

// 5.8 缓存数据清空请求
export function clearBuffer() {
    return $axios.post('/grapes_reps/setting/clear_buffer');
}

// 5.9 项目人员查看请求
export function loadMembers() {
    return $axios.post('/grapes_reps/setting/load_members');
}

// 5.10 人员搜索请求
export function searchMember(data) {
    return $axios.post('/grapes_reps/setting/search_member', data);
}

// 5.11 项目人员删除请求
export function delMember(data) {
    return $axios.post('/grapes_reps/setting/del_member', data);
}

// 5.12 项目添加新成员请求
export function addMember(data) {
    return $axios.post('/grapes_reps/setting/add_member', data);
}

// 5.13 项目运行日志查看请求
export function loadLog(data) {
    return $axios.post('/grapes_reps/setting/load_log', data);
}

// 3.17 导出所有方法
export default {
    settingLoadInfo,
    updateServer,
    changeMissingmembersThreshold,
    changeServerLoad,
    loadBuffer,
    clearBuffer,
    loadMembers,
    searchMember,
    delMember,
    addMember,
    loadLog
}